package com.behavioral.chain;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author jmg
 */
public class Main {
    
    public static void main(String[] args) {
       
        ValidateNotNull notNull = new ValidateNotNull();
        ValidateNotUno notUno = new ValidateNotUno();
        ValidateNotDos notDos = new ValidateNotDos();
        
        notNull.setNext(notUno);
        notUno.setNext(notDos);
                
        
        
        
        notNull.validate("dfsdfsd2");
        
    }
}
